﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F202_QuanLyThanhVien.aspx.cs" Inherits="QuanLyNhanSu_F202_QuanLyThanhVien" %>
<%@ Register assembly="eWorld.UI" namespace="eWorld.UI" tagprefix="ew" %>
<%@ Import Namespace ="IP.Core.IPCommon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
	    <tr>
            <td class="cssPageTitleBG"> <asp:label id="lblUser" runat="server" CssClass="cssPageTitle" Text="Thông tin thành viên"/></td>
	    </tr>
	    <tr>
		    <td>
		       <asp:validationsummary id="vds" runat="server" CssClass="cssManField" Font-Bold="true" />
		       <asp:label id="m_lbl_mess" runat="server" CssClass="cssManField" Font-Bold="true" />
		    </td>
	    </tr>
        
         <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0"> 
            <tr>
                <td align="right" style="width:15%" class="style2">			
        			<asp:label id="m_lbl_ho_va_ten_doi_tuong" CssClass="cssManField" runat="server" Text="&lt;U&gt;H&lt;/U&gt;ọ và tên đối tượng"/>
                </td>
                <td align="left" class="style4" >
	        		<asp:DropDownList ID="m_cbo_ho_va_ten_doi_tuong" runat="server" 
                        CssClass="cssDorpdownlist" Width="96%" 
                        onselectedindexchanged="m_cbo_ho_va_ten_doi_tuong_SelectedIndexChanged" />
                </td>
                <td align="left" style="width:1%;"> (*)<br />
                </td>
                <td align="left" class="style1"> &nbsp;</td>
                <td align="left" style="width:30%;"> &nbsp;</td>
                <td align="left" style="width:1%;">&nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:15%" class="style2">			
                    <asp:label id="m_lbl_ten_dang_nhap" CssClass="cssManField" runat="server" Text="&lt;U&gt;T&lt;/U&gt;ên đăng nhập"/>
                </td>
                <td align="left" class="style4"  >
	        		<asp:TextBox ID="m_txt_ten_dang_nhap" runat="server" Width="96%" CssClass="cssTextBox"></asp:TextBox>
                </td>
                <td align="left" style="width:1%;"> (*)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="m_txt_ten_dang_nhap" Text="*" ErrorMessage="Bạn phải nhập tên đăng nhập"></asp:RequiredFieldValidator>
                </td>
                <td align="left" class="style1"> 
                    &nbsp;
                </td>
                <td align="left" style="width:30%;">
			        &nbsp;</td>
                <td align="left" style="width:1%;"></td>
            </tr>
            <tr>
                <td align="right" class="style2">
        			<asp:label id="lbl_mat_khau" CssClass="cssManField" runat="server" Text="&lt;U&gt;M&lt;/U&gt;ật khẩu" />
                </td>
                <td align="left" class="style4"  >
	        		<asp:TextBox ID="m_txt_mat_khau" runat="server" Width="96%" 
                        CssClass="cssTextBox"></asp:TextBox>

                </td>
                <td align="left" style="width:1%;"> (*)<br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="m_txt_mat_khau" Text="*" ErrorMessage="Bạn phải nhập mật khẩu"></asp:RequiredFieldValidator>
                </td>
                <td align="right" class="style1">
			        &nbsp;</td>
                <td align="left" style="width:1%;">
			        &nbsp;</td>
                 <td align="right" class="style1">&nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="style1">
			        <asp:label id="m_lbl_chuc_vu" CssClass="cssManField" runat="server" Text="&lt;U&gt;C&lt;/U&gt;hức vụ" />
                </td>
                <td align="left" class="style4">
	        		<asp:DropDownList ID="m_cbo_chuc_vu" runat="server" 
                        CssClass="cssDorpdownlist" Width="96%" />
                </td>
                <td align="left" style="width:1%;"> (*)<br />
                </td>
                <td align="right" class="style1">
			        &nbsp;</td>
                <td align="left" style="width:1%;">
			        &nbsp;</td>
                 <td align="right" class="style1">&nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="style2">
                    <asp:label id="lbl_email_bkindex" CssClass="cssManField" runat="server" Text="&lt;U&gt;E&lt;/U&gt;mail BKIndex" /> 
                </td>
                <td align="left" class="style4">		
    		        <asp:textbox id="m_txt_email_bkindex" CssClass="cssTextBox"  runat="server" MaxLength="64" Width="96%" />
                </td>
                <td align="left" style="width:1%;"> &nbsp;</td>
                <td align="right" class="style1">       
                    &nbsp;</td>
                <td align="left" style="width:10%;">
                    &nbsp;</td>
                <td align="left" style="width:1%;">  &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="style2">
			        <asp:label id="lbl_ngay_vao_nhom" CssClass="cssManField" runat="server" Text="&lt;U&gt;N&lt;/U&gt;gày vào nhóm" />
                </td>
                <td align="left" class="style4">
			        <ew:CalendarPopup ID="m_dat_ngay_vao_elearning" runat="server" 
                        ControlDisplay="TextBoxImage" GoToTodayText="Hôm nay:" 
                        ImageUrl="~/Images/cal.gif" Nullable="True" NullableLabelText="" 
                        ShowGoToToday="True" Width="50%" SelectedDate="" Text="" Culture="vi-VN" 
                        DisableTextboxEntry="False">
                        <weekdaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <weekendstyle backcolor="LightGray" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <offmonthstyle backcolor="AntiqueWhite" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Gray" />
                        <selecteddatestyle backcolor="Yellow" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Black" />
                        <monthheaderstyle backcolor="Yellow" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Black" />
                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <cleardatestyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <gototodaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <holidaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                    </ew:CalendarPopup>
			
                    </td>
                <td align="left" style="width:1%;">  &nbsp;</td>
                <td align="right" class="style1">
                    &nbsp;</td>
                <td align="left" style="width:10%;"> &nbsp;</td>
                <td align="left" style="width:1%;">  &nbsp;</td>
            </tr>
      
            <tr>
                    <td align="right" class="style2"> &nbsp;</td>
                    <td align="left" class="style4"  ><asp:button id="m_cmd_tao_moi" accessKey="c" CssClass="cssButton" runat="server" Width="98px" Text="Tạo mới(c)" 
                        onclick="m_cmd_tao_moi_Click" />&nbsp;
			            <asp:button id="m_cmd_cap_nhat" accessKey="u" CssClass="cssButton" runat="server" CommandName="Update" Width="98px" Text="Cập nhật(u)" CausesValidation="false"
                                    onclick="m_cmd_cap_nhat_Click"  />&nbsp;
			            <asp:button id="m_cmd_delete" accessKey="r" CssClass="cssButton" runat="server" CommandName="Delete"
                            Width="79px" Text="Xóa trắng(r)" onclick="m_cmd_delete_Click" />
                        <asp:HiddenField ID="hdf_id" runat = "server" Value="" />
                    </td>
			        <td align="left" style="width:1%;"></td>
                    <td align="left" class="style1">&nbsp;</td>
                    <td align="left" style="width:10%;">&nbsp;</td>     
                    <td align="left" style="width:1%;"></td>
                </tr>
         </table>
         <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
         <tr >
            <td class="cssPageTitleBG" colspan="6"  > <asp:label id="m_lbl_ket_qua_loc_thanh_vien" runat="server" CssClass="cssPageTitle" 
                 Text="Danh sách thành viên"/></td>


	    </tr>         
         <tr>
            <td align="right" style="width:15%" class="style2">   <asp:label id="Label1" CssClass="cssManField" runat="server" Text="&lt;U&gt;T&lt;/U&gt;ên"/></td>
            <td style="width:30%" align="left"> 
                <asp:textbox id="m_txt_tu_khoa_tim_kiem" 
                    CssClass="cssTextBox"  runat="server" Width="194px"/></td>
            <td align="right" class="style2"  style="width:5%;"> <asp:button 
        id="btn_loc_doi_tuong" accessKey="l" CssClass="cssButton" runat="server" 
        Width="98px" Text="Lọc theo tên(l)" CausesValidation="false" onclick="btn_loc_doi_tuong_Click" 
                           /></td>
            <td align="left" class="style2"  style="width:5%;"> &nbsp;</td>            
            <td align="left" style="width:45%;" colspan="2">  &nbsp; &nbsp; &nbsp;&nbsp;</td>
        </tr>
        </table>
        <tr>
            <td align="left" style="width:1%;"> &nbsp;</td>
            <td align="left" style="width:1%;"><asp:label id="m_lbl_thong_bao" runat="server" CssClass="cssManField" /></td>
            <td>
            <asp:GridView ID="m_grv_dm_thanh_vien" AllowPaging="True" 
                runat="server" AutoGenerateColumns="False" 
                Width="100%" DataKeyNames="ID" 
                CellPadding="3" AllowSorting="True" 
                onrowdeleting="m_grv_dm_thanh_vien_RowDeleting" 
                onrowupdating="m_grv_dm_thanh_vien_RowUpdating" BackColor="White" 
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
        GridLines="Vertical" >            
                  <AlternatingRowStyle BackColor="#DCDCDC" />
                <Columns>                  
                    <asp:TemplateField HeaderText="Sửa">
                    <ItemTemplate>
                     <asp:LinkButton ID = "m_lbt_update"  runat="server"
                     CommandName="Update" Text="Sửa" ToolTip="Sửa" CausesValidation="false">
                     </asp:LinkButton>                     
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                    <ItemTemplate>
                     <asp:LinkButton ID = "m_lbt_delete"  runat="server" CausesValidation="false"
                     CommandName="Delete" Text="Xóa" ToolTip="Xóa" OnClientClick="return confirm ('Bạn có thực sự muốn xóa bản ghi này?')">
                     </asp:LinkButton>                     
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                     <%--<asp:CommandField SelectText="Sửa" ShowSelectButton="True" />--%>

                    <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center">
                       <ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tên thành viên">
                        <ItemTemplate>
                            <%# Mapping_hoten(Eval("ID").ToString()) %>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Chức vụ">
                        <ItemTemplate>
                            <%# Mapping_chuc_vu(Eval("ID_CHUC_VU").ToString()) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:BoundField DataField="EMAIL_BKINDEX"  HeaderText="Email BKIndex" ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="NGAY_VAO_ELEARNING" HeaderText="Ngày vào BKINdex" DataFormatString="{0:dd/MM/yyyy}" >
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>                 
                    <asp:BoundField DataField=""  HeaderText="Xem lịch sử nhóm" ItemStyle-HorizontalAlign="Center" >
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                </Columns>
                  <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                  <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                  <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                  <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#008A8C" Font-Bold="True" 
                      ForeColor="White"></SelectedRowStyle>
                  <SortedAscendingCellStyle BackColor="#F1F1F1" />
                  <SortedAscendingHeaderStyle BackColor="#0000A9" />
                  <SortedDescendingCellStyle BackColor="#CAC9C9" />
                  <SortedDescendingHeaderStyle BackColor="#000065" />
            </asp:GridView>            
            </td>
            <td align="left" style="width:1%;"> &nbsp;</td>
            <td align="left" style="width:1%;"> &nbsp;</td>
            <td align="left" style="width:1%;"> &nbsp;</td>
            
        </tr>
</table>
</asp:Content>

